<template>
  <div ref="nav" class="lxh-nav">
    <router-link
      v-for="item in navs"
      :key="item.path"
      class="nav-item"
      :to="item.path"
    >
      {{ item.name }}
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'LNav',
  data() {
    return {
      navs: [{
        path: '/',
        name: 'Home'
      }, {
        path: '/login',
        name: 'Login'
      }, {
        path: '/order',
        name: 'Order'
      }, {
        path: '/abc',
        name: 'Abc'
      }, {
        path: '/dashboard',
        name: 'Dash'
      }, {
        path: '/dashboard2',
        name: 'Dash2'
      }]
    }
  }
}
</script>

<style lang="less" scoped>
.lxh-nav{
  flex-grow: 0;
  flex-shrink: 0;
  height: 90px;
  line-height: 90px;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
}
</style>
